<include file="Public:header_user"/>

<div class="title_member">
	<h2>{$_cur_title}</h2>
</div>
<div class="user_search">
	<form method="get" action="" class="form clearfix">
		<ul class="clearfix">
			<li>
				<div class="label"><label>订单号：</label></div>
				<div class="enter"><input type="text" name="order_sn" value="{$order_sn}" class="text w166"></div>
			</li>
			<li>
				<div class="label"><label>交易时间：</label></div>
				<div class="enter">
					<input type="text" value="{$start_date}" name="start_date" class="text w92" onclick="WdatePicker()" > 
					<span class="f1">-</span>
					<input type="text" name="end_date" value="{$end_date}" class="text w92" onclick="WdatePicker()">
				</div>
			</li>
			<li>
				<div class="submit">
					<button type="submit">搜索</button>
				</div>
			</li>
		</ul>
	</form>
</div>
<style type="text/css">
.member_table td{
	line-height: 20px;
}
.package_agreement_name{
	font-size: 10px;
}
</style>
<table class="member_table">
	<thead>
		<tr>
			<th>订单编号</th>
			<th>合同名称</th>
			<th>订单金额</th>
			<th>下单时间</th>
			<th>订单状态</th>
			<th>操作</th>
		</tr>
	</thead>
	<tbody>
		<volist name="list" id="rs">
		<tr>
			<td>{$rs['order_sn']}</td>
			<td>
				<div>{$rs['title']}</div>
				<eq name="rs.is_package" value="1">
					<div class="package_agreement_name">({$rs['package_agreement_name']})</div>
				</eq>
			</td>
			<td class="money"><span>{$rs['order_amount']}</span></td>
			<td>{$rs['datetime']}</td>
			<td class="type">
				<span style="color: {$rs['status_color']}">{$rs['user_status_desc']}</span>
				<a href="{:URL('detail', array('order_sn' => $rs['order_sn']))}">订单详情</a>
			</td>
			<td class="operate">
				<eq name="rs.is_pay" value="1">
					<a class="btn_red" href="{:URL('Order/pay', array('order_sn' => $rs['order_sn']))}" target="_blank">支付</a>
				</eq>
				<eq name="rs.is_cancel" value="1">
					<a class="link btn-confirm-opt" msg="您确定是否要取消订单({$rs['order_sn']})?" href="{:URL('cancel', array('order_sn' => $rs['order_sn']))}">取消订单</a>
				</eq>

				<eq name="rs.is_comment" value="1">
					<a class="win link" href="{:URL('win_comment', array('order_sn' => $rs['order_sn']))}">评价</a>
				</eq>

				<eq name="rs.is_view_comment" value="1">
					<a class="link" href="{:URL('view_comment', array('order_sn' => $rs['order_sn']))}">查看评价</a>
				</eq>
				<eq name="rs.status" value="finish">
					<a class="btn_red nojump" href="{:U('download', array('order_sn' => $rs['order_sn'], 'file_id' => $rs['download_id']))}" target="_blank">下载合同</a>
				</eq>
			</td>
		</tr>
		</volist>
		<empty name="list">
		<tr>
			<td class="no_result" colspan="7">
				抱歉，没有找到对应的订单数据。
			</td>
		</tr>
		</empty>
	</tbody>
</table>
<div class="page">{$page}</div>
			
<include file="Public:footer_user"/>